﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnlineJobPortal.Models
{
    public class HomeRepository : IHomeRepository
    {
        public bool VerifyUser(String Email, String Password)
        {
            var objEntities = new JobPortalEntities7();
            var user_data = objEntities.Users.ToList();
            int c = user_data.Count;

            foreach (var v in user_data)
            {
                if (v.Email.Equals(Email) && v.Password.Equals(Password) )
                {
                    return true;
                }

            }
            return false;
        }
    }
}